/* styles.css - 可爱少女风格 with 动画效果 */
body {
    font-family: 'Comic Sans MS', 'Marker Felt', 'Arial Rounded MT Bold', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fff5f5;
    color: #5a3d3d;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M30,50 Q50,30 70,50 T90,50" fill="none" stroke="%23ffd6de" stroke-width="1" opacity="0.3"/></svg>');
    background-size: 200px 200px;
}

header {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
    color: white;
    padding: 25px;
    text-align: center;
    border-bottom: 5px dotted #ff6b88;
    position: relative;
    overflow: hidden;
}

header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="2" fill="%23ffffff" opacity="0.2"/></svg>');
    animation: float 20s linear infinite;
    z-index: 0;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-5%, 5%); }
    50% { transform: translate(-10%, 0); }
    75% { transform: translate(-5%, -5%); }
    100% { transform: translate(0, 0); }
}

header .profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 4px solid white;
    box-shadow: 0 4px 8px rgba(255, 105, 140, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

header .profile-img:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 8px 16px rgba(255, 105, 140, 0.4);
}

header h1 {
    margin: 0;
    font-size: 2.2em;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    color: #fff;
    position: relative;
    z-index: 1;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

header p {
    margin: 8px 0;
    font-size: 1.1em;
    position: relative;
    z-index: 1;
}

.contact-info {
    margin-top: 15px;
    background-color: rgba(255, 255, 255, 0.3);
    padding: 10px;
    border-radius: 20px;
    display: inline-block;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.contact-info:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.contact-info a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.contact-info a:hover {
    text-decoration: underline;
    color: #ffebee;
    text-shadow: 0 0 5px rgba(255, 235, 238, 0.7);
}

.section {
    background-color: white;
    margin: 20px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(255, 105, 140, 0.1);
    border: 1px solid #ffd6de;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section:hover {
    box-shadow: 0 8px 16px rgba(255, 105, 140, 0.2);
    transform: translateY(-5px);
}

.section h2 {
    border-bottom: 3px dashed #ff9a9e;
    padding-bottom: 10px;
    color: #ff6b88;
    font-size: 1.5em;
    position: relative;
}

.section h2::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: #ff6b88;
    animation: underline 2s forwards;
    animation-delay: 0.5s;
}

@keyframes underline {
    to { width: 100%; }
}

.content {
    margin-top: 15px;
    padding: 0 10px;
}

.content h3 {
    margin-top: 15px;
    color: #ff6b88;
    font-size: 1.2em;
    display: inline-block;
    background: linear-gradient(to right, #ff9a9e, #fad0c4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: colorShift 3s infinite alternate;
}

@keyframes colorShift {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}

ul {
    list-style-type: none;
    margin-left: 0;
    padding-left: 0;
}

ul li {
    padding: 8px 0;
    padding-left: 25px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="%23ff6b88"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
    background-repeat: no-repeat;
    background-position: 0 center;
    transition: all 0.2s ease;
}

ul li:hover {
    transform: translateX(5px);
    color: #ff6b88;
}

footer {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #fad0c4 0%, #ff9a9e 100%);
    color: white;
    margin-top: 20px;
    font-size: 0.9em;
    border-top: 5px dotted white;
    position: relative;
}

footer::before {
    content: "❤";
    position: absolute;
    left: 20px;
    animation: heartBeat 1.5s infinite;
}

footer::after {
    content: "❤";
    position: absolute;
    right: 20px;
    animation: heartBeat 1.5s infinite 0.5s;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

/* 浮动的心形装饰 */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.heart {
    position: absolute;
    opacity: 0.2;
    animation: float-up 15s linear infinite;
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* 为不同部分设置不同的动画延迟 */
.section:nth-child(1) { animation-delay: 0.1s; }
.section:nth-child(2) { animation-delay: 0.2s; }
.section:nth-child(3) { animation-delay: 0.3s; }
.section:nth-child(4) { animation-delay: 0.4s; }
.section:nth-child(5) { animation-delay: 0.5s; }